package com.example.demo.constans;

/**
 * 缓存的key 常量
 * 
 * @author hecheng
 */
public class CacheConstants
{
    /**
     * 令牌自定义标识
     */
    public static final String HEADER = "Authorization";

    /**
     * 令牌前缀
     */
    public static final String TOKEN_PREFIX = "Bearer ";

    /**
     * 权限缓存前缀
     */
    public final static String LOGIN_TOKEN_KEY = "login_tokens:";
    public final static String ACCESS_KEY = "accesskey:";
    public final static String WALLET_ADDRESS = "walletaddress:";


    /**
     * 用户ID字段
     */
    public static final String DETAILS_USER_ID = "user_id";

    /**
     * 用户名字段
     */
    public static final String DETAILS_USERNAME = "username";

    /**
     * 用户名类型
     */
    public static final String USER_TYPE = "userType";


    /**
     * 用户名类型
     */
    public static final String PROJECT_NUMS = "projects";


    /**
     * 所在公司
     */
    public static final String ORGANIZATION_CODE = "organizationCode";


    /**
     * 用户登录后信息
     */
    public static final String USER_INFO = "userInfo";


    /**
     * 用户登录转发token, 这个是文胜用的，已经作废
     */
    public static final String USER_TOKEN= "userToken";

}
